# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-backports.csv
_pkgname=backports.csv
pkgver=1.0.7
pkgrel=10
pkgdesc='Backport of Python 3 csv module.'
arch=('any')
url='https://github.com/ryanhiebert/backports.csv'
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://github.com/ryanhiebert/backports.csv/archive/$pkgver.zip")
sha512sums=('f19816b6dc8caace3331f4dad9b9fa6dd96f0ff4cbcdd56ffacc85ea998cb1e367e42c7c5011c0ddaf4a978b3c135ecd03b6ebaa8b4d140a922f236cd9d56a3b')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

